<template>
    <div class="nav">
        <ul>
            <router-link to="/home" tag="li"><a href="javascript:;">首页</a></router-link>
            <router-link to="/follow" tag="li" ><a href="javascript:;">栏目</a></router-link>
            <router-link to="/colum" tag="li" ><a href="javascript:;">关注</a></router-link>
        </ul>
    </div>
</template>
<script>
    export default{}
</script>
<style scoped>
    .nav {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 2;
        background:#fff;
        font-size:0.35rem;
    }
    .nav > ul {
        width: 4.38rem;
        height: 0.6rem;
        margin: 0 auto;
        display: flex;
    }
    .nav>ul>li{
        flex: 1;
        height: 0.6rem;
        text-align: center;
        line-height: 0.6rem;
    }
    .nav>ul>li>a{
        display: inline-block;
        width:100%;
        height: 100%;
        color: #9e9a95;
    }
    .nav>ul>li.router-link-active>a{
        height:0.5rem;
        border-bottom: 0.1rem solid #5477b2;
        color: #5477b2;
    }
</style>